package com.open.cloud.rbac.entity.application;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 应用模块表
 * </p>
 *
 * @author wangzengzhou01
 * @since 2024-12-23
 */

@Data
@ApiModel(value = "CoreApplicationModule对象", description = "应用模块表")
@TableName("core_application_module")
public class CoreApplicationModule extends Model<CoreApplicationModule> {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "编号")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private String id;

    @ApiModelProperty(value = "应用ID")
    @TableField("application_id")
    private String applicationId;

    @ApiModelProperty(value = "模块名称")
    @TableField("module_name")
    private String moduleName;

    @ApiModelProperty(value = "请求服务")
    @TableField("request_server")
    private String requestServer;

    @ApiModelProperty(value = "模块url")
    @TableField("module_url")
    private String moduleUrl;

    @ApiModelProperty(value = "唯一性url")
    @TableField("unique_url")
    private String uniqueUrl;

    @ApiModelProperty(value = "创建时间")
    @TableField("create_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;

    @ApiModelProperty(value = "更新时间")
    @TableField("update_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateTime;


    @Override
    public Serializable pkVal() {
        return this.id;
    }

}
